<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sec="http://www.springframework.org/security/tags"
	xmlns:p="http://primefaces.org/ui">
<f:view contentType="text/html">
	<h:head>
		<h:outputStylesheet library="css" name="login.css" />
	</h:head>
	<h:body>
		<div id="container">

			<h:form id="loginFormId" prependId="false">
				<p:growl showDetail="false" />

				<div class="login">#{messages.login}</div>
				<div class="username-text">
					<h:outputText value="#{messages.username}: "></h:outputText>
				</div>
				<div class="password-text">
					<h:outputText value="#{messages.password}: "></h:outputText>
				</div>
				<div class="username-field">
					<p:inputText id="userName" required="true"
						value="#{loginMgmtBean.userName}"
						requiredMessage="#{messages.username_reqiured}" />
				</div>
				<div class="password-field">
					<p:password id="password" required="true"
						value="#{loginMgmtBean.password}"
						requiredMessage="#{messages.password_reqiured}"
						name="inTxtPasswordNm" />
				</div>




				<h:selectBooleanCheckbox id="remember-me"
					value="#{loginMgmtBean.rememberMe}"></h:selectBooleanCheckbox>
				<h:outputLabel for="remember-me">#{messages.remember_me}</h:outputLabel>

				<div class="forgot-usr-pwd">
					<a href="#">#{messages.forgot_password}</a> <br />
					<h:outputLink id="link1"
						value="#{request.contextPath}/pages/registration.xhtml">
						<h:outputText value="#{messages.registration}" />
					</h:outputLink>

				</div>

				<p:commandButton value="#{messages.login}" validateClient="true"
					action="#{loginMgmtBean.login}" update="loginFormId" />



			</h:form>

		</div>
	</h:body>
</f:view>
</html>


